#include <stdio.h>

double mypow(double x, int n);

int main() {
    double x;
    int n;

    scanf("%lf %d", &x, &n);
    printf("%f\n", mypow(x, n));

    return 0;
}

/* 你的代码将被嵌在这里 */
double mypow(double x, int n) {
    double ret = 1.0;
    if (n < 0) {
        for (int i = 1; i <= -n; i++) {
            ret /= x;
        }
    } else {
        for (int i = 1; i <= n; i++) {
            ret *= x;
        }
    }
    return ret;
}
